# coding=utf-8

from plant.base.tools.config import Config

'''
system basic
'''


class BaseSV:
    def __init__(self):
        host = str(Config().read("local_server_host", "host"))
        self.host = host
        device_type = Config().read("local_server_host", "device_type")
        self.regUri = self.host + "/device/reg/" + device_type
        self.buildSerialNumberUri = self.host + '/serialNumber/build'
        self.sampleListUri = self.host + '/sample/list'
        self.testOptionListUri = self.host + '/testOption/listForMinder/{sampleCode}'
        self.staffLoadUri = self.host + '/staff/load/jobnumber/{jobnumber}'
        self.stepUri = self.host + '/testUnit/load/step/{factorySN}'
        self.testRecordBuildUri = self.host + '/testRecord/build'
        self.testUnitLoadUri = self.host + '/testUnit/load/sn/{sn}'
        self.testUnitBuildUri = self.host + '/testUnit/build'
